<?php 
$app				= JFactory::getApplication();
$doc				= JFactory::getDocument();
$doc->addStyleSheet($this->baseurl.'/templates/system/css/system.css');
//$doc->addStyleSheet($this->baseurl.'/templates/'.$this->template.'/css/position.css', $type = 'text/css', $media = 'screen,projection');
//$doc->addStyleSheet($this->baseurl.'/templates/'.$this->template.'/css/layout.css', $type = 'text/css', $media = 'screen,projection');
//$doc->addStyleSheet($this->baseurl.'/templates/'.$this->template.'/css/print.css', $type = 'text/css', $media = 'print');
$showtopnav		= ($this->countModules('top-nav'));
$showmainnav		= ($this->countModules('main-nav'));
$showfooter		= ($this->countModules('footer'));
$showcontact			= ($this->countModules('left-con') or $this->countModules('address') or $this->countModules('contact-form'));
$showleftcol			= ($this->countModules('search') or $this->countModules('information'));
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $this->language; ?>" lang="<?php echo $this->language; ?>" dir="<?php echo $this->direction; ?>" >
<head>
<jdoc:include type="head" />
<link rel="stylesheet" type="text/css" href="<?php echo $this->baseurl ?>/templates/<?php echo $this->template; ?>/css/reset.css"/>
<link rel="stylesheet" type="text/css" href="<?php echo $this->baseurl ?>/templates/<?php echo $this->template; ?>/font/stylesheet.css"/>
<link rel="stylesheet" type="text/css" href="<?php echo $this->baseurl ?>/templates/<?php echo $this->template; ?>/css/styles.css"/>
<script type="text/javascript" src="<?php echo $this->baseurl ?>/templates/<?php echo $this->template; ?>/js/jquery.js"></script>
<script type="text/javascript" src="<?php echo $this->baseurl ?>/templates/<?php echo $this->template; ?>/js/jquery.validate.js"></script>
<script type="text/javascript" src="<?php echo $this->baseurl ?>/templates/<?php echo $this->template; ?>/js/jquery.maskedinput-1.2.2.js"></script>
<link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/<?php echo $this->template; ?>/css/jquery.ui.all.css"/>
<script src="<?php echo $this->baseurl ?>/templates/<?php echo $this->template; ?>/js/jquery.ui.core.js"></script>
<script src="<?php echo $this->baseurl ?>/templates/<?php echo $this->template; ?>/js/jquery.ui.widget.js"></script>
<script src="<?php echo $this->baseurl ?>/templates/<?php echo $this->template; ?>/js/jquery.ui.datepicker.js"></script>
<script type="text/javascript" src="<?php echo $this->baseurl ?>/templates/<?php echo $this->template; ?>/js/jquery.ui.datepicker-da.js"></script>
<link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/<?php echo $this->template; ?>/css/datepicker.css"/>
<link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/<?php echo $this->template; ?>/css/reveal.css">
<script type="text/javascript" src="<?php echo $this->baseurl ?>/templates/<?php echo $this->template; ?>/js/jquery.reveal.js"></script>
<script type="text/javascript">
	jQuery(document).ready(function(jQuery) {
		close_popup=function(){		
				var fel=jQuery('#f_focus').html();
				jQuery('#backoverlay').hide();
				jQuery('#show_popup').hide();
				jQuery('#' + fel ).focus();		
		 };
	 });
</script>
<script type="text/javascript">
jQuery(function() {
	jQuery( "#datepicker, #datepicker2" ).datepicker({
			changeMonth: true,
			changeYear: true,
			
		});
});

jQuery(function() {
if( jQuery('#system-message dd ul li').length > 0) {
			jQuery('#alert').html(jQuery('#system-message dd ul li').html());
			jQuery('#backoverlay').show();
			jQuery('#show_popup').show();
		}
});	

</script>

</head>
<body>
	<div style="display:none">
		<jdoc:include type="message" />
    </div>
	<jdoc:include type="component" />

<style>	
 	a {cursor:pointer;}
    .bg_alert{ width:275px; height:115px; background:url("<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/img/bg_alert.png") no-repeat top left; margin:0px auto; padding:10px 0px 0px 78px; color:#000;}
    .m35l{ margin-left:35px;}
</style>

<div id="dialog" style="display:none; position: fixed; top: 10%; left: 35%; z-index:10002;"></div>
<div class="bg_alert" id="show_popup" style="font-size:13px; display:none; position: fixed; top: 35%; left: 50%; z-index:10003; margin-left:-140px;">
    <span id="f_focus" style="display:none;"></span>
    <div style="margin:0; padding-top:0px; min-height:75px;width:260px;" id="alert"></div>
    <div style="padding-left: 40px;"><a href="javascript:void(0);" onclick="close_popup();"><img src="<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/img/bt_luk.png" alt="" /></a></div>
</div>
<div style="display: none;position: fixed; top: 0;left: 0;width: 100%;height: 100%;background-color: #000000;z-index:10002;-moz-opacity: 0.8;opacity:.80;filter: alpha(opacity=80);" id="backoverlay"></div>	


	<jdoc:include type="modules" name="debug" />
</body>
</html>
